package slim3.service;

import slim3.model.Post;
import org.slim3.datastore.Datastore;
import com.google.appengine.api.datastore.Transaction;

public class PostService {
    
    public void insert(Post post) {
        Transaction tx = Datastore.beginTransaction();
        Datastore.put(tx, post);
        Datastore.commit(tx);
    }
}
